Accelerated C++: Practical Programming by Example (Paperback)(dhl)

Accelerated C++: Practical Programming by Example (Paperback)(dhl)

作者: Andrew Koenig Barbara E. Moo
出版社: Addison Wesley
出版在: 2000-08-14
ISBN-13: 9780201703535
ISBN-10: 020170353X
裝訂格式: Paperback
總頁數: 352 頁





內容描述


Description
 
Accelerated C++ introduces a radical new approach to teaching C++. It starts with the most useful concepts rather than the most primitive ones, so the student can begin writing programs immediately. It describes real problems and solutions, not just language features. And it includes the standard library from the start. The authors proved the effectiveness of this approach in their courses at Stanford and Princeton, where their students learned to write substantial programs their first day in the classroom.

Appropriate Courses
C++--Intermediate Programming.

 
Table Of Contents
 
Preface.

  1. Getting Started.
     
    Comments.
    #include.
    The Main Function.
    Curly Braces.
    Using the Standard Library for Output.
    The Return Statement.
    A Slightly Deeper Look.
    Details.

  2. Working with Strings.
     
    Input.
    Framing a Name.
    Details.

  3. Looping and Counting.
     
     
    The Problem.
    Overall Structure.
    Writing an Unknown Number of Rows.
    Writing a Row.
    The Complete Framing Program.
    Counting.
    Details.

  4. Working with Batches of Data.
     
     
    Computing Student Grades.
    Using Medians Instead of Averages.
    Details.

4.Organizing Programs and Data.
 
 
Organizing computations.
Organizing Data.
Putting it All Together.
Partitioning the Grading Program.
The Revised Grading Program.
Details.

  1. Using Sequential Containers and Analyzing Strings.
     
     
    Separating Students into Categories.
    Iterators.
    Using Iterators Instead of Indices.
    Rethinking Our Data Structure for Better Performance.
    The List Type.
    Taking Strings Apart.
    Testing Our Split Function.
    Putting Strings Together.
    Details.

  2. Using Library Algorithms.
     
     
    Analyzing Strings.
    Comparing Grading Schemes.
    Classifying Students, Revisited.
    Algorithms, Containers, and Iterators.
    Details.

  3. Using Associative Containers.
     
     
    Containers that Support Efficient Look-Up.
    Counting Words.
    Generating a Cross-Reference Table.
    Generating Sentences.
    A Note on Performance.
    Details.

  4. Writing Generic Functions.
     
     
    What is a Generic Function?
    Data-Structure Independence.
    Input and Output Iterators.
    Using Iterators for Flexibility.
    Details.

  5. Defining New Types.
     
     
    Student_info revisited.
    Class Types.
    Protection.
    The Student_info class.
    Constructors.
    Using the Student_info class.
    Details.

  6. Managing Memory and Low-Level Data Structures.
     
     
    Pointers and Arrays.
    String Literals Revisited.
    Initializing Arrays of Character Pointers.
    Arguments to Main.
    Reading and Writing Files.
    Three Kinds of Memory Management.
    Details.

  7. Defining Abstract Data Types.
     
     
    The Vec Class.
    Implementing the Vec Class.
    Copy Control.
    Dynamic Vecs.
    Flexible Memory Management.
    Details.

  8. Making Class Objects Act Like Values.
     
     
    A Simple String Class.
    Automatic Conversions.
    Str Operations.
    Some Conversions are Hazardous.
    Conversion Operators.
    Conversions and Memory Management.
    Details.

  9. Using Inheritance and Dynamic Binding.
     
     
    Inheritance.
    Polymorphism and Virtual Functions.
    Using Inheritance to Solve Our Problem.
    A Simple Handle Class.
    Using the Handle Class.
    Subtleties.
    Details.

  10. Managing Memory (Almost) Automatically.
     
     
    Handles that Copy their Objects.
    Reference-Counted Handles.
    Handles that Let you Decide When to Share Data.
    An Improvement on Controllable Handles.
    Details.

  11. Revisiting Character Pictures.
     
     
    Design.
    Implementation.
    Details.

  12. Where Do We Go From Here?
     
     
    Use the Abstractions You Have.
    Learn More.

Appendix A. Language Details.
 
 
Declarations.
Types.
Expressions.
Statements.

Appendix B. Library Summary.
 
 
Input-Output.
Containers and Iterators.
Algorithms.

Index. 020170353XT04062001




相關書籍

Visual Studio Code Distilled: Evolved Code Editing for Windows, Macos, and Linux

作者 Del Sole Alessandro

2000-08-14

新一代5G網絡:從原理到應用

作者 劉忠 陳佳瑩 林磊

2000-08-14

深入淺出 5G 移動通信

作者 劉毅等

2000-08-14